﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _4._28._2015Csharp.HomeworkDay1
{   //Public is an access modifier
   public class Program
    {
      public  static void Main(string[] args)
        {
          //Requirement 1: Output your favorite quote to the console.
            Console.WriteLine("Walk softly and carry a big stick.");

         

          //Requirement 2: take an input for a string from the user and then output the next line.
            Console.WriteLine("What is your name?");
            var input = Console.ReadLine();
          // {0} indicates where the information we return will appear in the console.
            Console.WriteLine("You answered: {0}", input);

          //create an array that holds from 0-9 an loop through it to output it to the console
            int[] arr = new int[10];
          //populating array after declaring it
            for (int i = 0; i < arr.Length; i++)
            {
                arr[i] = i;
            }
                for (int i = 0; i < arr.Length; i++)
                {
                    if (i < arr.Length - 1) { Console.Write(i + ", "); }
                    else Console.Write(i);
                }
            Console.Write("\n");
            Console.WriteLine("-----------------------------------------------");

          Requirement4:
          //Create an array of objects. Add your name, age, birthday, fav hobby in a separate index. Output the array onto the console.
          object[] objArray = new object[] {"Jeremy", 22, "Feb. 1, 1993", "Long walks on the beach, and having canlde-lit dinners."};
          
          // for loop used to print out each individual element in the array
          for (int i = 0; i < objArray.Length; i++)
          {
              // {0} and {1} are placemarkers for the order of information to appear in the console
             Console.WriteLine("{0}: {1}" , objArray[i].GetType().Name, objArray[i]);
          }
          Console.Write("\n");
          Console.WriteLine("----------------------------------------");

          Console.WriteLine("Please press enter to exit the program.");
                Console.ReadLine();
        }
    }
}
